package com.example.badyloans.servlet;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.dao.TRepaymentMapper;
import com.example.badyloans.pojo.TRepayment;
import com.example.badyloans.servlet.TRepaymentService;

import java.util.List;

@Service
public class TRepaymentServiceImpl implements TRepaymentService{

    @Resource
    private TRepaymentMapper tRepaymentMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return tRepaymentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TRepayment record) {
        return tRepaymentMapper.insertSelective(record);
    }

    @Override
    public TRepayment selectByPrimaryKey(String id) {
        return tRepaymentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TRepayment> selectBypriment(String userId, Integer currentPageNo, Integer pageSize) {
        return tRepaymentMapper.selectBypriment(userId, currentPageNo, pageSize);
    }

    @Override
    public List<TRepayment> selectBypriments() {
        return tRepaymentMapper.selectBypriments();
    }

    @Override
    public TRepayment selectBypriments1() {
        return tRepaymentMapper.selectBypriments1();
    }

    @Override
    public int sum(String userId) {
        return tRepaymentMapper.sum(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(TRepayment record) {
        return tRepaymentMapper.updateByPrimaryKeySelective(record);
    }

}
